enum SCHEMAL{
	INT,
	CHAR,
	UNKNOW
};

struct MConn
{
	char *database;
};
typedef struct MConn MConn;

#define CONF_PATH "msql.conf"

char* get_insert_table_name(char *insertCmd);
char *get_create_table_name(char *sqlstr);

int* get_schemal(char *file);
void do_insert(char *cmd, int *schemal, char *file);

void execute_insert_sql(MConn *conn, char *sqlstr);
int execute_create_sql(MConn *conn, char *sqlstr);

void load_config();

/*glob config*/
char *g_datadir = NULL;


